home *** CD-ROM | disk | FTP | other *** search
- Path: news.IntNet.net!jtomich
- From: jtomich@IntNet.net (Jeff Tomich)
- Newsgroups: comp.lang.c
- Subject: Re: Clearing the keyboard
- Date: 25 Jan 1996 07:15:38 GMT
- Organization: Intelligence Network Online, Inc.
- Message-ID: <4e7amq$nhd@mercury.IntNet.net>
- References: <DLMF4r.Gwp@rci.ripco.com>
- NNTP-Posting-Host: xcalibur.intnet.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- : > Huh? Once the buffer is caught up, it shouldn't continue, but you
- : > might want to try fflush(stdin); just the same. ...
-
- : Why? Are there any other pieces of undefined behavior that you think
- : people "might want to try?" Nor does the C language defines what
- : happens if you discharge a shotgun at your computer; maybe you "might
- : want to try" that, also.
- :
-
- Why not this;
-
- while(kbhit())
- getch();
-
- this should clear the keyboard...
-